import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
const routes = [
   // 登录
   {
    path: '/login',
    name: 'login',
    component: () => import('@/pages/login')
  },
  {
    path: '/',
    name: 'home',
    component: () => import('@/pages/home')
  },
  {
    path: '/news',
    name: 'news',
    component: () => import('@/pages/news/index')
  },
  {
    path: '/newsDetails',
    name: 'newsDetails',
    component: () => import('@/pages/news/newsDetails')
  },
  {
    path: '/college',
    name: 'College',
    component: () => import('@/pages/college/index')
  },
  {
    path: '/course',
    name: 'course',
    component: () => import('@/pages/course/course')
  },
  {
    path: '/videoCourse',
    name: 'videoCourse',
    component: () => import('@/pages/course/videoCourse')
  },
  {
    path: '/playVideo',
    name: 'playVideo',
    component: () => import('@/pages/course/playVideo')
  },
  {
    path: '/courseDetails',
    name: 'courseDetails',
    component: () => import('@/pages/course/courseDetails')
  },
  {
    path: '/contractUs',
    name: 'contractUs',
    component: () => import('@/pages/contract/contractUs')
  },
  {
    path: '/examRes',
    name: 'examRes',
    component: () => import('@/pages/examination/examRes')
  },
  {
    path: '/exam',
    name: 'exam',
    component: () => import('@/pages/examination/exam')
  },
  {
    path: '/examFail',
    name: 'examFail',
    component: () => import('@/pages/examination/examFail')
  },
  {
    path: '/myCenter',
    name: 'myCenter',
    component: () => import('@/pages/mine/myCenter')
  },
 
  {
    path: '/download',
    name: 'download',
    component: () => import('@/pages/other/download')
  },
  {
    path: '/more',
    name: 'more',
    component: () => import('@/pages/other/moreList')
  },
  {
    path: '/questionBank',
    name: 'questionBank',
    component: () => import('@/pages/questionBank/index')
    
  },
  {
    path: '/practice',
    name: 'practice',
    component: () => import('@/pages/questionBank/practice')
  }
]
const router = new Router({
  mode: 'history',
  routes
})
export default router
